// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.common.model.OptionItem;
import com.fowo.api.entity.StockageInfoOrder;
import com.fowo.api.model.stockage.info.order.StockageInfoOrderItemVo;
import com.fowo.api.model.stockage.info.order.StockageInfoOrderItemVoPages;
import com.fowo.api.model.stockage.info.order.StockageInfoOrderSearchParamPo;
import com.fowo.api.model.stockage.info.order.StockageInfoOrderVo;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface StockageInfoOrderMapper extends BaseMapper<StockageInfoOrder> {
  Page<StockageInfoOrderItemVo> pageSearch(
    @Param("page") Page page,
    @Param("search") StockageInfoOrderSearchParamPo search
  );
  List<OptionItem<StockageInfoOrderItemVo>> searchOptions(
    @Param("search") StockageInfoOrderSearchParamPo search
  );
  List<StockageInfoOrderItemVo> search(
    @Param("search") StockageInfoOrderSearchParamPo search
  );
  Date searchLastUpdateTime(
    @Param("search") StockageInfoOrderSearchParamPo search
  );
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(@Param("search") StockageInfoOrderSearchParamPo search);
  /**
   * 搜索满足条件的记录数量
   * @param search 搜索参数
   * @return 记录数量
   */
  Long searchCount(@Param("search") StockageInfoOrderSearchParamPo search);
  Long getIdByName(@Param("name") String name);

  List<Long> getIdsByName(@Param("list") List<String> list);

  String getNameById(@Param("id") Long id);

  List<Map<String, Object>> getNameByIds(@Param("ids") List<Long> ids);
  StockageInfoOrderVo selectVoById(@Param("id") Long id);
  /**
   * 查询 所属库存明细 分页下属列表
   */
  List<StockageInfoOrderItemVoPages> selectPagesByParentInventoryDetailOrderlist(
    @Param("search") StockageInfoOrderSearchParamPo search
  );
}
